/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 * Origin source from MaNGOS(GPL2).
 * Copyright (C) 2005-2010 MaNGOS <http://getmangos.com/>
 */

#ifndef __WORLD_DATABASE_H__
#define __WORLD_DATABASE_H__

#include "DatabaseMySQL.h"

namespace PQServiceCore
{
	class WorldDatabase
	{
	public:
		static WorldDatabase& getSingleton()
		{
			static WorldDatabase inst;
			return inst;
		}

		bool PExecute(const char *format,...);

		bool CleanDatabase();

		void ThreadStart();
		void ThreadEnd();
	};

}
#define SWorldDB PQServiceCore::WorldDatabase::getSingleton()
#endif
